include ../../Makefile.in

TMP_DEBUG=${patsubst ${VEDO_SRC}%,${VEDO_OBJ_DEBUG}%,${PWD}}/
TMP_RELEASE=${patsubst ${VEDO_SRC}%,${VEDO_OBJ_RELEASE}%,${PWD}}/

all: debug release
#debug: ${VEDO_BIN}iris-debug ${VEDO_BIN}irisGM-debug ${VEDO_BIN}irisGF-debug
debug: ${VEDO_BIN}irisGM-debug
#release: ${VEDO_BIN}iris ${VEDO_BIN}irisGM ${VEDO_BIN}irisGF
release: ${VEDO_BIN}irisGM


${VEDO_BIN}iris-debug: ${TMP_DEBUG}BakGraphPartition.o     \
                       ${TMP_DEBUG}GraphPartition.o        \
                       ${TMP_DEBUG}Iris.o                  \
                       ${TMP_DEBUG}NBSGPConsultant.o       \
                       ${TMP_DEBUG}NBSParallelConsultant.o \
                       ${TMP_DEBUG}SyncCon.o               \
                       ${TMP_DEBUG}Table.o
	${mLNK} -o $@ $^ ${mLNK_FLAGgd}

${VEDO_BIN}irisGM-debug: ${TMP_DEBUG}IrisGM.o        \
                         ${TMP_DEBUG}NBSParallelConsultant.o
	${mLNK} -o $@ $^ ${mLNK_FLAGd}

${VEDO_BIN}iris_GF-debug: ${TMP_DEBUG}BakGraphPartition.o \
                          ${TMP_DEBUG}GraphPartition.o    \
                          ${TMP_DEBUG}IrisGF.o        \
                          ${TMP_DEBUG}NBSGPConsultant.o   \
                          ${TMP_DEBUG}SyncCon.o           \
                          ${TMP_DEBUG}Table.o
	${mLNK} -o $@ $^ ${mLNK_FLAGgd}

${TMP_DEBUG}%.o: ${IMP}%.cpp
	${mCXX} -o $@ ${mCXX_FLAGd} -c $<

${VEDO_BIN}iris: ${TMP_RELEASE}BakGraphPartition.o     \
                 ${TMP_RELEASE}GraphPartition.o        \
                 ${TMP_RELEASE}Iris.o                  \
                 ${TMP_RELEASE}NBSGPConsultant.o       \
                 ${TMP_RELEASE}NBSParallelConsultant.o \
                 ${TMP_RELEASE}SyncCon.o               \
                 ${TMP_RELEASE}Table.o
	${mLNK} -o $@ $^ ${mLNK_FLAGg}

${VEDO_BIN}irisGM: ${TMP_RELEASE}IrisGM.o                \
                   ${TMP_RELEASE}NBSParallelConsultant.o
	${mLNK} -o $@ $^ ${mLNK_FLAG}

${VEDO_BIN}iris_GF: ${TMP_RELEASE}BakGraphPartition.o \
                    ${TMP_RELEASE}GraphPartition.o    \
                    ${TMP_RELEASE}Iris_graph.o        \
                    ${TMP_RELEASE}NBSGPConsultant.o   \
                    ${TMP_RELEASE}SyncCon.o           \
                    ${TMP_RELEASE}Table.o
	${mLNK} -o $@ $^ ${mLNK_FLAGg}

${TMP_RELEASE}%.o: ${IMP}%.cpp
	${mCXX} -o $@ ${mCXX_FLAG} -c $<
